<?php
if ($newsletter_detail->num_rows() > 0) {
    $news = $newsletter_detail->row();
}

?>
<div id="wrapper-content">
     <table class="titrepage" width="100%">
        <tr>
            <td >Information newsletter</td>
        </tr>
    </table>
 
        <?php echo form_open(site_url('newsletter/update_newsletter') . '/' . $news->id); ?>
        <table align="center" id="form_profile" cellpadding="10px" cellspacing="0">
            <tr>
                <td>Titre:</td>
                <td><input name="titre" type="text" value="<?php echo $news->titre; ?>" /></td>
                <td><?php echo form_error('titre'); ?></td>
            </tr>
            <tr>
                <td valign="top">Contenu:</td>
                <td colspan="2">
                    <?php
                    $data = array('name' => 'contenu',
                        'id' => 'contenu',
                        'width' => '610',
                        'height' => '400',
                        'type'=>'text',
                        'value' => $news->contenu
                        );
                    echo form_fckeditor($data);
                    ?>
                </td>
                <td><?php echo form_error('contenu'); ?></td>
            </tr>
            <tr>
                <td><input type="submit" name="submit" value="Update"/></td>
            </tr>
        </table>
    <?php echo form_close() ?>

</div>

